package com.itzb.asone.application;

public final class Application {
private final static ThreadLocal<ApplicationUserInfo> applicationInfoThreadLocal = new ThreadLocal<ApplicationUserInfo>();
	
	public static void setApplicationInfo(ApplicationUserInfo applicationUserInfo) {
		applicationInfoThreadLocal.set(applicationUserInfo);
	}
	
	public static ApplicationUserInfo getApplicationInfo() {
		if (applicationInfoThreadLocal.get() == null) {
			return null;
		}
		return applicationInfoThreadLocal.get();
	}
	
	
	public static void clean() {
		applicationInfoThreadLocal.remove();
	}
}
